package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AgentiaConsumablesCheckHistory;
import com.zhijian.medical.entity.vo.request.AgentiaConsumablesCheckHistorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaConsumablesCheckHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgentiaConsumablesCheckHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentiaConsumablesCheckHistory record);

    int insertSelective(AgentiaConsumablesCheckHistory record);

    AgentiaConsumablesCheckHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentiaConsumablesCheckHistory record);

    int updateByPrimaryKey(AgentiaConsumablesCheckHistory record);

    int count(AgentiaConsumablesCheckHistorySearchVo agentiaConsumablesCheckHistorySearchVo);

    List<AgentiaConsumablesCheckHistoryVo> selectList(AgentiaConsumablesCheckHistorySearchVo agentiaConsumablesCheckHistorySearchVo);

    AgentiaConsumablesCheckHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AgentiaConsumablesCheckHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @param day
     * @return
     */
    String selectMaxCodeByDay(String day);
}